package com.smile.frame.springbootsatoken.config;

import lombok.Getter;
import lombok.Setter;
import org.assertj.core.util.Lists;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LGC
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "security")
public class SecurityProperties {
    /**
     * 默认的过滤地址
     */
    private List<String> defaultIgnoreUrls = Lists.list(
            "/error", "/favicon.ico", "/swagger-resources/**", "/webjars/**",
            "/swagger-ui.html", "/doc.html/**", "/v2/api-docs/**");

    private List<String> ignoredUrls = new ArrayList<>();
}